<extend name="Layout:layout_dialog" />
<block name="body_main">
    <form action="{:U('advert_edit_save')}" method="post" class="xsui-form">
        <fieldset>
            <div class="xsui-form-field">
                <label>位置：</label>
                <input type="text" name="location" value="{$data.location}" placeholder="如:全网首页,交易类频道首页" title="如:全网首页,交易类频道首页,资讯类频道首页,功能交互类页面,列表页面,会员登录页面" required="required" size="35" />
            </div>
            <div class="xsui-form-field">
                <label>频道：</label>
                <input type="text" name="channel" value="{$data.channel}" placeholder="如:首页,会员登录页面,服饰频道首页" title="如:首页,会员登录页面,促销频道首页,服饰频道首页,社区频道首页" required="required" size="35" />
            </div>
            <div class="xsui-form-field">
                <label>名称：</label>
                <input type="text" name="name" value="{$data.name}" placeholder="如:首页第2轮播焦点图,首页2栏通屏,首页1屏右侧Banner" title="如:首页第2轮播焦点图,首页第3轮播焦点图,首页1栏通屏,首页2栏通屏,首页1屏右侧Banner,左侧Banner,会员登录页1屏Banner" required="required" size="35" />
            </div>
            <div class="xsui-form-field">
                <label>标题：</label>
                <input type="text" name="title" value="{$data.title}" placeholder="如:首页第2轮播焦点图,服饰频道首页1屏通栏" title="格式:{频道}{名称},如:首页第2轮播焦点图,服饰频道首页1屏通栏" required="required" size="35" />
            </div>
            <div class="xsui-form-field">
                <label>英文名称：</label>
                <input type="text" name="code" value="{$data.code}" placeholder="如:SY_JDT_RM1:首页焦点图第1轮播" title="格式:{频道拼音缩写}_{名称拼音缩写}_{广告类型}:{n},如:SY_JDT_RM1:首页焦点图第1轮播,SY_FB1:首页底部1栏通屏,GYWMSY_B1:关于我们频道首页1栏通屏" required="required" size="31" />
            </div>
            <div class="xsui-form-field">
                <label>数量：</label>
                <input type="number" name="count" value="{$data.count}" required="required" />
            </div>
            <div class="xsui-form-field">
                <label>宽度(像素)：</label>
                <input type="number" name="image_width" value="{$data.image_width|default=800}" placeholder="宽度(像素)" required="required" />
            </div>
            <div class="xsui-form-field">
                <label>高度(像素)：</label>
                <input type="number" name="image_height" value="{$data.image_height|default=600}" placeholder="高度(像素)" required="required" />
            </div>
            <div class="xsui-form-field">
                <label>文件格式：</label>
                <input type="text" name="file_type" value="{$data.file_type}" placeholder="如:jpg,gif,png" title="文件扩展名以英文逗号隔开" required="required" size="31" />
            </div>
            <div class="xsui-form-field">
                <label>文件大小(KB)：</label>
                <input type="number" name="file_size" value="{$data.file_size}" placeholder="文件大小规格(KB)" title="为加快页面显示速度,建议不要超过50KB" required="required" />
            </div>
            <div class="xsui-form-field">
                <label>备注：</label>
                <input type="text" name="remark" value="{$data.remark}" placeholder="备注" required="required" size="35" />
            </div>
            <div class="xsui-form-field xsui-form-mgb">
                <label>状态：</label>
                <sohtml:radio name="status" items="1:显示;0:隐藏" value="{$data.status}" required="required" />
            </div>
        </fieldset>
        <button type="submit" class="ui-state-default"><i class="fa fa-save"></i>保存</button>
        <button type="reset" class="ui-state-default">重置</button>
        <input type="hidden" name="id" value="{$data.id}"/>
        <input type="hidden" name="site_id" value="{$data.site_id}"/>
        <input type="hidden" name="user_name" value="{$data.user_name}"/>
    </form>
</block>
<block name="body_after">
    <script>
        $(function () {
            FormPage.ui_init();
        })
    </script>
</block>